package Gamefield;

import Pieces.PiecePlayerEnum;

public class Players{
	private Player[] _players = new Player[3];
	
	public boolean add(Player player){
		if(player.getPlayerCol() == PiecePlayerEnum.White){
			_players[1] = player;
		} else {
			_players[2] = player;
		}
		return true;
	}
	
	public Player next(Player curPlayer){
		if(curPlayer == null){ // Start of game
			return _players[1];
		} else {
			if (_players[1].getPlayerCol() == curPlayer.getPlayerCol()){	
				return _players[2];
			} else {
				return _players[1];
			}
		}
	}
}
